package com.woniuxy.hrp.service;

import com.woniuxy.hrp.entity.PageBean;
import com.woniuxy.hrp.entity.PayRecord;
import com.woniuxy.hrp.entity.Reservation;
import com.woniuxy.hrp.entity.Walletopr;

import java.util.List;

/**
 * @program: hrph
 * @InterfaceName PayRecordService
 * @description:
 * @author: LRW
 * @create: 2022-09-01 02:03
 * @Version 2.0
 **/
public interface PayRecordService {

    /***
     * @description: 根据患者id查询所有支付记录
     * @param: patientId
     * @return: java.util.List<com.woniuxy.hrp.entity.PayRecord>
     * @author Lrw
     * @date: 2022/9/5 0:31
     */
    List<PayRecord> getAllByPatientId(int patientId);

    /***
     * @description: 根据患者id分页查询所有支付记录
     * @param: 患者id,查询页数
     * @return: java.util.List<com.woniuxy.hrp.entity.PayRecord>
     * @author Lrw
     * @date: 2022/9/1 2:04
     */
    PageBean<PayRecord> getAllByPatientIdAndPage(int patientId, int page);

    void add(PayRecord payRecord);

    /***
     * @description: 多条件分页查询支付记录
     * @param: 患者id、分页大小、当前页码 、查询条件
     * @return: com.woniuxy.hrp.entity.PageBean<com.woniuxy.hrp.entity.PayRecord>
     * @author Lrw
     * @date: 2022/9/7 16:50
     */
    PageBean<PayRecord> getPayRecordsByPatientIdAndConditionAndPage(int patientId, int pageSize, int page, PayRecord payRecord);
}
